package cn.xiaye.blog.servlet;

import java.util.List;

import cn.xiaye.blog.bean.Article;
import cn.xiaye.blog.bean.Context;
import cn.xiaye.blog.dao.ArticleDao;

@SuppressWarnings("serial")
public class ArticleList extends FatherServlet {

	@Override
	public String excute(Context context) {
		ArticleDao articleDao = new ArticleDao();
		List<Article> list = articleDao.queryAll();
		context.getRequest().setAttribute("list", list);
		return "admin/update_article.jsp";
	}

}
